package com.example.user


import androidx.lifecycle.ViewModelProvider
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.user.databinding.ActivityLoginBinding
import com.witmed.lib_base.BaseActivity

@Route(path = "/user/LoginActivity")
class LoginActivity ():BaseActivity<ActivityLoginBinding,LoginViewModel>() {
    override fun startActivity() {

    }

    override fun createVM(): LoginViewModel {
       return ViewModelProvider(this).get(LoginViewModel::class.java)
    }

    override fun initLayout(): Int {
        return R.layout.activity_login
    }

    override fun initView() {
        v.listener=vm.getMyListener()
        v.entity=vm.getMyEntity()

    }


    override fun initDB():Int {
       return BR.vm
    }
}